import { Alignment } from 'element-plus/es/components/table-v2/src/constants.mjs'

export interface RequestBaseData {
  channel: 'Service'
}
export interface TokenRequestData extends RequestBaseData {
  token: string
}
export interface OptionsEntity {
  label: string
  value: number
}
export interface PieChartData {
  name: string
  value: number
  color?: string
  InColor?: string
  itemStyle?: any
  label?: any
  labelLine?: any
}

export type CabinetType =
  | '联网电站'
  | '离线电站'
  | '低电电柜'
  | '维修电柜'
  | '沉淀电柜'
  | '告警电柜'
export type ChargeCabinetType =
  | '联网电站'
  | '离线电站'
  | '正在充电'
  | '停止充电'
  | '温度异常'
  | '告警电柜'
/**
 * 0：断网
 * 1: 联网
 */
export type baiscOnlineStatusType = '0' | '1'

export interface basicMapData {
  longitude: string
  latitude: string
  [key: string]: any
}

export interface basicHomeData<T> {
  label: string
  egLabel: string
  value: T
}
/** 左上角 检测数据 */
export interface detectionEntity {
  key: string
  value: number
  label: string
}
export interface proportionEntity {
  name: string
  value: number
}
export interface TableType {
  key: string
  dataKey: string
  title: string
  width: number
  align?: Alignment
}
